package com.ljl.spring.Controller;

import com.ljl.spring.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class StudentController {
    @Autowired
    private StudentService service;

    @RequestMapping(value = "/login",method = RequestMethod.GET )
    public String login(@RequestParam("name")String name,@RequestParam("passpd")String passpd ){
        String msg = service.login(name, passpd);
        return msg;
    }

}
